ClickEncoder Library with 2 Encoder? Does not work

Hello

I’m using the ClickEncoder from here: GitHub - 0xPIT/encoder: Atmel AVR C++ RotaryEncoder Implementation

I’m acutally not using encoders, just buttons, but i only want the fancy “click,doubleclick,held,release” from this library. It works fine with the first button “mode_button” and “mode_btn” when i added the second one, the second one does not work (opt_button)

See my code parts here:

#include <ClickEncoder.h>
#include <TimerOne.h>
#define mode_button 6
#define opt_button 8

ClickEncoder *mode_btn;
ClickEncoder *opt_btn;


void setup() {


  mode_btn = new ClickEncoder(99, 98, mode_button, 2, HIGH); //99,98 Dummy pins for Rotary encoder
  opt_btn = new ClickEncoder(97, 96, opt_button, 2, HIGH); 
  Timer1.initialize(1000);
  Timer1.attachInterrupt(timerIsr);
}

void timerIsr() {
  //Encoder Library neccesarry function
  mode_btn->service();
  opt_btn->service();
}

void loop(){

checkEncoder();
}


void checkEncoder() {

  ClickEncoder::Button b = mode_btn->getButton();
  switch (b) {
    case ClickEncoder::Held:
      //do nothing
      break;
    case ClickEncoder::DoubleClicked:
      mode_btn_double();
      break;
    case ClickEncoder::Clicked:
      mode_btn_click();
      break;
  }

    ClickEncoder::Button c = opt_btn->getButton();
  switch (c) {
    case ClickEncoder::Held:
      Serial.println("HELD");
      break;
    case ClickEncoder::DoubleClicked:
      Serial.println("opt_double");
      break;
    case ClickEncoder::Clicked:
      Serial.println("click");
      break;
  }


  
}

I also tried to swap the pins to validate if the switch or input is damaged, but its not.

Anyone sees the problem?