small fix in volknnsearch to only use location if necessary