Fixed issue with zero not showing up in badge.

Closes #18
Closes #30