fix script build bug