Fixed precmd function name