Fix path selection.