Webkit buffer fix

https://gist.github.com/bmatusiak/5358707