fixed _to_path_head