Fix missing arguments in the query callback.