fix crash when in socket activate mode