fix bug in list_fields
fix minnspec requirement in a few placs