now decrementing to zero removes error