pass Array Buffer to constructor

do'h all I checked was that it failed without this patch