Fix up resource loading.