fix path conversion