#24 fixed buffer positioning
Merge pull request #25 from palek/master

#24 fixed buffer positioning