Fix resource loading