Fixed JS bug that prevented one-off synchronization