fixed toAray in cas of fieldset