fixed params in Query to allow execution twice

fixes #1545