Fix inventory problems