Fix accesscounter bug