fix concatinate error when two arrays are one-dim array