fixed bug

fixed duplicate query error