stats working, but not updating document