Fix syntax errors in clone script