Fix broken sync

Closes #272.