inventory validation fixed