Fix bugs around range search updating.