division  by zero fix
tray preferences