repair some errers