Fix getField method