Fixed memcopy mistake