Fixed #2151 determine whether to array
Merge pull request #2155 from dreamsxin/bug_2151

Fixed #2151 determine whether to array