Fixed a bug regarding the type of parsed items. I used the wrong field to determine which template to load.