Fixed error on saving commits.