Fix kernel lookup for downsampling.