Fixed sizeof bug