fix: check before commit