Fixed null pointer on step windows if the env wasnt selected