Fixed settings bug with redirection