fix filter index error