Game crash when collecting X'd treasure as realm quest

############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object obj_controller:

trying to index a variable which is not an array
at gml_Object_obj_controller_Step_0
############################################################################################

Maybe I pressed a button too soon.
The confirmation that I found the treasure appeared and after closing the dialog box the game threw up this crash box.

My task was to complete a realm quest as well.

A fix should be up for this now. Thanks!