fixed autogen script