fix no-commit mode