Fixed IoBuffer's checkIndex at last byte