Fix rest when command is not defined.