fixing inventory order