Fixed library loading issue