fixed bug where keys would not be initialized when hierarchy was
refreshed.