Fix duplicated precmd()