Fix update buffer size
Merge pull request #25 from ufo-kit/update-buffer-resize

Fix update buffer size