Fix Buffer.updateSize