Fixed processing of sync_rules