Main page chart count fix