fix outdated check in buttons extension