fixed bug in gaussian filter