Try to fix a warning when checking penalties.