Fix error with UiComponent.js