fix error with restart and stop nags