Fixed bug in xprotocol.