Adding indexes to the CALL get_xp to fix errors