fixed channel newdata bug + unit test