App crashing whenever I want to activate a custom toolbox