repair some doc