fixed issue where old $methods were stored when multiple queries were
run