Read and writebytes were missing