bugfix: use memcpy for unalign memory