fix typo in sync.js