[fix] Cleanup real_name function.