- fixed issue with multiple undefined found when traversing objects and throwing an error