fixed minor issues with sync service.