Scope fix for restart_command