[ui] fixed #340