fixed xbee code