Fix bug in Dictionary register search.