Fixed a bug that was making the application of item bonuses cost less XP
than intended.