fixed a one-off bug in my opening counter