fixed some sync bugs