Modify query dealy of isLibrary()