Fixed memcopy reading when it shouldn't.