fix environment production errors