corrects typo and insets tmpObj