Bug custom dimensions

Hi. I have an issue when I try to set a custom dimension. The issue only occurs in Chrome and Firefox (edge and safari seems ok)

I got this error in console

ERROR Error: Uncaught (in promise): TypeError: au.shift is not a function
TypeError: au.shift is not a function
    at Object.aj [as push]

The error happens every time that I run

this._paq.push('setCustomDimension', 1, true)

in my angular code

Can someone help?
thanks