[Bugfix] wrong buffer length.