fixed issues when there are no projects