add apg's fix for Key id display

changes from #449 added to OP