fix supervisor restart