fix case with arr.slice(-2)