loans and dividends

clients with loss making company have drawn monies mistakenly as dividends.  Will not return to profit for 15/18 months.   Di minis rule will assist but need to action some small excess!!

Any suggestions welcome