fixed env ending