Calling AddRow() after SetFields() fails. Since SetFields is unused, remove it, along with this bug.
AddRow()
SetFields()