Fixed click counter doing reference comparison