fix logic error on imageClone process.