Fixing bad paths