Prevent exception when creating a project