fixing error with updating existing data set. mongoose is not handling the nested data structure well.