repair bugs when commit