Fixed invalid size when reading partial block