fixed inventory addition bug