Small fix in path selection