bug #1920: Done not remove . from template when updating