fix add environment to team issues