fixed issue with the default value of EnvironmentType beeing "null"