The bug fix of unit association on inventory updating