fix memmove