thx GaoGongPei, bug fix for sizeof