Hello,

Can you please re-write this algorithm for me to fix the error message I'm seeing when trading live connected to my Schwab account?  Here is the error message I'm seeing in my live deployment:

Runtime Error

Error Message:
Runtime Error: 'Fundamental' object has no attribute 'SecurityType'
  at <listcomp>
    and x.SecurityType == SecurityType.Equity
       ^^^^^^^^^^^^^^
 in main.py: line 47
  at CoarseSelectionFilter
    filtered = [
               ^
 in main.py: line 43
 Stack Trace: 'Fundamental' object has no attribute 'SecurityType'
  at <listcomp>
    and x.SecurityType == SecurityType.Equity
       ^^^^^^^^^^^^^^
 in main.py: line 47
  at CoarseSelectionFilter
    filtered = [
               ^
 in main.py: line 43