fixed crash when creating a new project