More fix on check_only_one_env_callback