fix get user enviroment bug