Fixed a bug when searching checkpoints for nearest coordinates.