fixing bad paths