Fixed bug in the field handler.
Merge pull request #9 from roemerd/master

Fixed bug in field handler.