fix some weird data corruptions caused by optimized memcpy