Fix bug in last commit that caused unit test to fail.
Authored by: mdboom 2009-10-01
Parent: [r7838]
Child: [r7840]