fix sync option handling bug