fixed flat-ui error