fix query usename bug