fixing a bug in synthetic stats script