Fix some missing when script = true