Fix consecutive syncing failure on jQuery Mobile