fix second time commit hooks will clean error