Fix real_name related KeyError