Whoops, did res[bwdq] 0 instead of 1
Times .* res[bwdq] 1 -> res[bwdq] .*