Fixing error while reading environment variables.