Fix issue with pathSelection and gs.