Fix enum field bug in structured editor