set sync to true