fix #73 didn't reformulate query for the choosing newvalid ID loop