bad script fix