Fixed bug where disable counter didn't work properly