Fix loading of external resources.