Deleting someone from Party

I want to delete someone from the party. I was instructed to inactivate the person first before deleting them. However, after inactivating and attempting to erase the record, this happened.

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 117, in dispatch_request
    return endpoint(request, **request.view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/protocols/dispatcher.py", line 46, in rpc
    return methods.get(request.rpc_method, _dispatch)(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/wsgi.py", line 84, in auth_required
    return wrapped(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/protocols/wrappers.py", line 181, in wrapper
    return func(request, pool, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/protocols/dispatcher.py", line 180, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/wizard/wizard.py", line 313, in execute
    return wizard._execute(state_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/wizard/wizard.py", line 344, in _execute
    result = self._execute(transition())
                           ^^^^^^^^^^^^
  File "/trytond/modules/party/party.py", line 811, in transition_erase
    Model.write(records, {'active': False})
  File "/trytond/modules/health/health.py", line 646, in write
    person_id = parties[0].id
                ~~~~~~~^^^
IndexError: list index out of range

This is a bug in GNU Health, report it to them.