Fix rank filter kernels