fixed bug which updated references when there were no changes, improved query debugger