fix script init