fix signals counting