fix error script