Fixed bug where data was being sent to the incorrect channel number