Fixed issues with loading env variables.