fix path building