fixing sync error