Fixed some sync problems.