BUG Fix issue creating environments