fix a bug that two request were sent when saving a project.