Since the base xp for level 1 is 0 the startLevelXp was initialized from the current level which made the progress bar calculations wrong as they were based on the xp earned from the current level base xp and not level 1.
Since the base xp for level 1 is 0 the startLevelXp was initialized from the current level which made the progress bar calculations wrong as they were based on the xp earned from the current level base xp and not level 1.