Fixed bug in table stat calculator, wasn't handling done issues correctly