fix issue: increase size after read content to buffer