fixing the click count