Fixing stats bug