counter initial state value fix