Fixing crash when calculating xp/hr before level is loaded