Fixed crash loading libraries