fix threshold in settings window