fixed library loading glitch