Fixes parent path.