Fix weird arithmatic exception with leveling up