[fix] copy head buffer into correct var name
Merge pull request #17 from jcrugzz/buffer-copy

[fix] copy head buffer into correct var name