fix quick-commit bugs