Fixed counter from not updating