fix - division by zero when settings.min == settings.max