Fixed resource loading issue