removing wrong extra commas in 2 templates