Working towards fixing the pathIsClear() bug