fixed bug in spatialconvolution