Fix counter bar not appearing sometimes.