Properly print missing ids/names

Signed-off-by: Thameera Senanayaka <thameera123@gmail.com>