Error while installing lending app

Installing lending…
Updating payroll setup for loans
An error occurred while installing lending: Could not find DocType: Loan
Traceback (most recent call last):
File “apps/frappe/frappe/commands/site.py”, line 462, in install_app
_install_app(app, verbose=context.verbose, force=force)
File “apps/frappe/frappe/installer.py”, line 309, in install_app
frappe.get_attr(fn)(name)
File “apps/hrms/hrms/setup.py”, line 310, in after_app_install
create_custom_fields(SALARY_SLIP_LOAN_FIELDS)
File “apps/frappe/frappe/custom/doctype/custom_field/custom_field.py”, line 32 6, in create_custom_fields
create_custom_field(doctype, df, ignore_validate=ignore_validate)
File “apps/frappe/frappe/custom/doctype/custom_field/custom_field.py”, line 29 2, in create_custom_field
custom_field.insert()
File “apps/frappe/frappe/model/document.py”, line 276, in insert
self._validate_links()
File “apps/frappe/frappe/model/document.py”, line 905, in validate_links
frappe.throw(
(“Could not find {0}”).format(msg), frappe.LinkValidationError )
File “apps/frappe/frappe/init.py”, line 570, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 542, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 491, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.LinkValidationError: Could not find DocType: Loan

any help please?

run bench update