fix settings xhr remove unneeded code