Fix fatal error on settings page.