fix path recursiveness