repair spacing on nil ifs in API prefs