fix stats of closed bugs (closes #52)

closed bugs are only the ones without type=0 (not open)
Merge pull request #53 from werner2101/master

fix stats of closed bugs (closes #52)