fix ArrayBuffer slice bug