fix filterByDistanceFrom(..)

The missing variable from the template have been fixe.