fix supporting minimal-ui bugs