Bug fix in getFullEnvironment and getNoiseLevelEnvironmentVariableFromCursor