Fix for wrong inflation. See #507