Removing invalid settings