Fixed incorrectly checked checkbox in pref dialog