Fixing prepare_env and postactivate