fixed loading env