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

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