fix locale query definition