fix cached buffer size is error.