Fix problem with precmd