fix script timeout