Temporary fix for odd template erro when having text nodes inside the templates