fixes restart script