Fixed crash where memmove used the wrong type