fix script seq