fix a bug when generating a project.