Fixed Bug with zero fields in generated classes.