Fix overweight penalty

Fixes #4888