Fixed bug in quark sync.