Fixed bug in removing channel modes in state