Fixed initialization failure when providing an array of elements.