fixing findbugs in market and inventory