Fixed compilation error in field.cpp.