fix generate project bug