fix autogen classes