After running multiple queries on the document, error is thrown on the UI 