fix #1397 by changing syntax to 1.8.7 compatible
fix #1393 by calculating todo count for hidden projects too