Fix readSizeInternal