fix mistake in generator for inheritence