fixed bug where choosing a channel for the weight functions screws everything up