Fixed deferred resource loading bug