Simplify close inventory patch