backport 0d array power fix to 1.8