Clean template after a lot of fiddlings