fix the ui bug when mkfile err