fixing client sync problems