Fix read buffer