Fix distance check source and distance point expressions validation