Fixed a bug with LOL path search