Fix copying and remove history