Fixed warning while using from_array() on new instance