Fix dup query result