fix a bug of buch array init