fixing sync issue