Fix ui bug for medit