fixed bug where add to toolbox didnt work