fix typo in new sync function