Fixed loading libraries