Fix syntax error, make saving sync