Fix CodeEntity name method