clone script, overwrite error, mem error

Change-Id: Icc87571d1d897969184516c4dc0ea5b9cfdcdf63