Found problem in memcpy!