Fix sync check