Fix issue with staged commits.