fix api level 9 crash in showCmdHistory