added check for single commit error