Fixing issue with errors when adding new fields.

Fixes #4.