fixed failure when the environmental variables are not set