fix bug of key range in filter