Fixed empty xp bug. Added delete character
fixing errors