Fixed the bug where maxhitpoints were not updated when leveling.