#919 modify global var into array