patched divide by zero within SmelteryGui

fix #191