restore flatten to a place that is needed (#9334)
authored by samuel.fm and committed by GitHub 4 months ago 531ff6c4 2077699a