funkel: fix: use correct index on apply_bank_change