fix bug in project stats if no data