The previous fix from r12729 used the wrong index!!
Authored by: bugman 2011-03-02
Parent: [r12729]
Child: [r12731]