23045 v187 Fix error: cannot use string offset as array.
(cherry picked from commit 0c20c01417bac446da1ab8bcba329a7f55767f12)