repair some warnings