remove extra dot from template