Last Term omitted

The last 'Term' element was parsed but the collections were not added to the dictionary.
This fix may not be the best solution but solves the problem. 

Thank you for the code.