Fixed inventory updating