Fixing callbacks in zmq server.