Medium: ui_resource: Fix bug in resource restart