* fixes bug where archived codes has been selectable due to recursive building of child-parent hierarchy