fix delete template