update target file. bug fix at generate script.