Change cursor's count check to if it's bigger than 0.

It should be always bigger than 0 not just non-zero.