fix problem where stats don't save