Fix bugs that remove PROMPT in bash.