fixed issue with buttonCounter