Revert "Script error fix"

This reverts commit d5bdf1ceb2cc3a9dbaa20938e3473ab5b4836578.