Correcting template snippet