Fixed typo bug which led to wrong path being selected.