tiny fix in naw_query