debug: query key should be swapped