Error in website user account - 'Orders', 'invoices', and 'Shipments'

Following error is showing when website user accessing their ‘Orders’, ‘invoices’, and ‘Shipments’

    Traceback (innermost last):
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/app.py", line 76, in application
    response = frappe.website.render.render(request.path)
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/website/render.py", line 40, in render
    data = render_page(path)
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/website/render.py", line 137, in render_page
    return build(path)
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/website/render.py", line 146, in build
    return build_method(path)
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/website/render.py", line 162, in build_page
    context = get_context(path)
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/website/context.py", line 29, in get_context
    context = build_context(context)
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/website/context.py", line 75, in build_context
    ret = module.get_context(context)
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/templates/pages/list.py", line 21, in get_context
    context.update(get(**frappe.local.form_dict))
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/templates/pages/list.py", line 40, in get
    limit_start=limit_start, limit_page_length=limit_page_length)
  File "/home/zinnee/frappe-bench/apps/erpnext/erpnext/controllers/website_list_for_contact.py", line 39, in get_transaction_list
    filters.append((doctype, key, "in", parties))
 UnboundLocalError: local variable 'parties' referenced before assignment

Can anyone please help that what is I am missing!

The “Contact” is neither tagged as a supplier or customer.

Maybe it should default to customer. Will fix this.

How did you create this user?

Edit: Fix: https://github.com/frappe/erpnext/commit/0bc3ca02f3067d589eccca36e839aa70c5965f1e

This is simply registered user in website through signup.

I also tried to assign this user as customer, but did not work!