FIX: bug in bad_channels