Fixed path selection bugs.