fix channel refreshState()

Fix  #743