Fix #1182 by only considering enabled channels