fix Issue 10635 - Error: cannot use array to initialize S
Merge pull request #2882 from 9rnsr/fix10635

Issue 10635 - Error: cannot use array to initialize S