fix leakes
query->method assigned recursively