Fixed parent_path to behave