fix bug in character repository get_id