fixed small memcpy-bug