fix order (old bug in class generation)