fix attachment clone issue