fix arguments for register_restart_command