even the good plans of wise wizards like gandalf and of good friends like elrond go astray sometimes when you are off on dangerous adventures over the edge of the wild ; and gandalf was a wise enough wizard to know it .