fixing bug that came from the whole sending prefs at beginning