Fixed issue accessing the settings page for some users