Fixed memset size error and placement error