Error in env key assignment