Fix weird return in on_query_completions