restore buffer size