Fix 0 division in scaling tool. Add null checks to remove tools