Seafile 9.0.4 Twilio 2FA error when trying to enable under user preference

When I select Settings, Two-Factor Authentication then select “Enable Two-Factor Authentication” the following page loads with radio buttons “Token Generator” and “Text message”. But when I click the next button I get the following error.

AttributeError at /profile/two_factor_authentication/setup/

‘StepsHelper’ object has no attribute ‘next

Request Method: POST
Request URL: XXXX://XXX.XXXXXXX.com/profile/two_factor_authentication/setup/
Django Version: 3.2.6
Exception Type: AttributeError
Exception Value: ‘StepsHelper’ object has no attribute ‘next
Exception Location: /home/seacloud/seafile-server-9.0.4/seahub/seahub/two_factor/views/core.py, line 102, in render_next_step
Python Executable: /usr/bin/python3
Python Version: 3.8.10

Im unable to get any further than this.

Any Ideas or can you point me in correct direction?