fix lead bugs