fix stats of closed bugs (closes #52)

closed bugs are only the ones without type=0 (not open)