Fix issue with registering the same widget with different names.