fixed issues about copying array.