fix error with NewMapField class