Fixed bug with missing template