fix path passing