Fix error script