fix production errors toggle