Fixed loadTemplate method

Also removed unnecessary resets.