fix potential crash if OnSuspend is triggered before OnUpdate