UiWrapper: fixed wrong return value