fix bug that always create a new project file