Minor bug fixes inventory management.