Fix error while writing channel data.