Fixing xp tick error