Fixed a memset offset error