Fixed bug where last group in OBJ was not added.