fix crash issue for calling return_null