Fix cache of libraries