Fix syntax issue with clear splice script