fix source_name renamed_from code (previous commit broken)