Don't trigger change event, if resource is not ready.
Fixed template update.
fixed template update