Fixed bug where updateViews failed to regenerate template files, leading to weirdness