fixed bug in mds_add_copy memmove