Fixing redirect issue on settings page, #441