fix the text mode boot bug