Fixed extra line being inserted after template