Fixed sync bug (I think)