repair some error