fix bug related to field selection