It can be caused by user input an incorrect drug cost. So, the system takes the incorrect input to calculate an incorrect average cost. Even if the user corrects the incorrect drug cost afterward, the incorrect drug cost still affects the unit cost calculation.
In order to fix human error, additional charge is needed.