Payroll Ledger - Wages Expense departments keep changing by themselves is there any way to make it stop?

In our payroll ledgers the 'record wage expense in' is set to our Wage account but with different departments for different employees. The departments started to change randomly in December 2021 and we have already had to change it back several times.

They don't always all change or change to the same department.

Any ideas as to why it is happening or how to make it stop?

Thanks