Fixed a stupid bug.  See diff