fixed global libraries return as null.