fix autgeneration