Fixed devision by zero for xp-bar