Fix GEN-BUFFERS
Merge pull request #5 from AlexCharlton/master

Small bugfix for gen-buffers