fix the screen switch bug in UIUtils