Fix bug when creating new project.