Fixed a bug with xbee modules.