fix bug in enum display

in the modal to edit preferences only relevant enums should be displayed