fixed bug in post-commit