Double-Query Bug