Fix array dimension bug in block-based band iteration