Fixed bug where json didn't sync