fix restart script