bugfix: legnth was not set when passing binary buffer fiedls to Lua