fix parent to path