Fixed some array construction bug.