Bugfix for installing templates