fixed non-square bug, still another bug causing error in convolution calculation