quick fix. global on return_arr in createEvent