Revert "Fixed sync bug"

This reverts commit 2469e8bb7f687c0bfbafe7c14a66c03efcd20e4b.