Fix resource loading error.