fix bug in pre-commit