The bank index and the pin number are not necessarily identical. For all PCINT banks except for bank 3 bank_idx was used therefore. It was likely just forgotten to update that for bank 3 as well.