fix two minor typos in the ui.error message

Two minor typos in the error message.