clone before query

fix #7