Fixed bug in field handler.