popEnv after compiling/flattening selectors