Fixed bug in map protocol.