Fix bug in pre-commit