fixing a bug with the stat uploads