Query fix in Sync