Fixed library loading bug