fixed a return bug in ipc.go