fix path selection