key_commit: Fixed a bug with penalties for items that were partially paid before and had penalties on the previous payment