fixed wrong sizeof type