Fixed errors in toolbox script.