fix rws search bug