fix up for the query and ray cast callbacks.