Fixed a bug involving BLOCKSIZE > 65536