fix level up logic