Fixed bug in readFully