fix border effect of filtering cleanup