fix error in struct_calcsize