Maybe this answer on "How to draw an arrow in the middle of the line?""How to draw an arrow in the middle of the line?" might help you. This way you do not run into a recursion.
replaced http://tex.stackexchange.com/ with https://tex.stackexchange.com/