Using push to unify the way to adding to array. fix Issue #1025
Merge pull request #1027 from stonelee/issue1025

Using push to unify the way to adding to array. fix Issue #1025