fix for bug with enums that was not flattening the list.