fix show_id code to pick right id type