(#37) Fixed issue with deep searching of documents.