Fixed #2151 determine whether to array
Merge pull request #2156 from dreamsxin/bug_2151_1.3.1

Fixed #2151 for 1.3.1