Fix recursive iteration bug

When iterating over a sub-object, it_obj is not reset to NULL and causes it to incorrectly display the first item twice.