Fixes issue with number based enum display. Fixes #1102