fixed an error in the query handling when disjointWiths are present
fixed a minor flaw in the processing
Merge pull request #3 from fustic/fixQueryHandlingWithDisjoints

fixed an error in the query handling when disjointWiths are present