Fix toolbox and cropnalyzer properly, also fix properly close inventory fix.