fix electric-pair support for 24.4+