fixed bugs with leveling up