Fixing pathSelection