bugfix: assign correct ports if channels=0