fix autogen error