Enhanced _get_field() logic
Fixed misplaced variable. Thanks, jgclarke