fixed delete template command