Fix for EOF on full read.