Properly clamping mana. Set version to 0.5.2.