fix for mistyped TEnums