Fix readed buffer size