fixing a bug with leveling up stats