fix bugs on check in ui