Fixes an error with the new loader and the template class that was only encountered while using the parse_views option. Fixes #969