Fix Registry#getConfig so it works more than once.