fixes   swith in whichiobj rule