fix script metadata