key_commit: Fixed a bug in the linking of penalties to receipts