inventory -- bug fixed