FAIMS-694: fixing logic in sync example