Environment not loading properly