Continue eliminating bugs

Eliminate two more bugs. Code now actually adds transition rows.