fix sizeof error