Fix sync protocol