fixed sizeof bug