I'm trying to create a simple flowchart (it's actually an archaeological diagram called a Harris Matrix) using TikZ. Below is the code for a small part of the finished diagram which illustrates the problem I'm having. In the current chart the line from the node labeled 7 goes downwards and then touches the node labeled 9 on the right side. What I would like to do is have the line still go downwards from node 7, go to the left, and then go downwards again to touch node 9 on the top. Thanks for any help, I'm quite new to TikZ.
What I have now:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\begin{document}
\tikzstyle{block} = [rectangle, draw, text centered]
\tikzstyle{line} = [draw]
\[ \begin{tikzpicture}
\node [block] (g) {7};
\node [block, below left of = g] (h) {9};
\node [block, below right of = g] (i) {12};
\path [line] (g) |- (h);
\path [line] (g) |- (i);
\end{tikzpicture} \]
\end{document}
