fix bug if ipcmsg is null