key_commit: Bug:Fixed some issues with the apportionment