Fix exception when NEXT > 8192 bytes