fixed bug in foreign_fields