Fix alignment in memcpy