mace: check channel count, fixes FPE