Fix problems with adding new project, fixes #308