Fixed resource loading issue.