hack for enums in forms, when using type field