bugfix: avoid misalignment of ports for channels=0