Fix semantic_path_until for self