runquery bug fix2