Fixed bug in the field handler.