Pand king crash

OS: WINE
version: 0.14.2

If I rapidly press E when consuming pand tokens and the pand king or queen attack, then another token is used while the battle is starting.

I don’t know if the game crashed because that token would trigger another battle. I finished the battle and then this message popped up instead of the loot screen.

ERROR!!! :: ############################################################################################
FATAL ERROR in
action number 1
of Create Event
for object obj_battlecontroller:

Variable obj_battlecontroller.xp(100149, -2147483648) not set before reading it.
at gml_Object_obj_battlecontroller_Create_0
############################################################################################

stack frame is
gml_Object_obj_battlecontroller_Create_0 (line -1)
called from - gml_Script_instance_create (line -1) -
gml_Room_battle_Create

Thanks!