fix sizeof() bug