dsa: error counter decrement logic