fixing bug with padding on filters