Fix corner-case bug, in which padding bytes are read as data.