fix save errors in custom fields
Merge pull request #52 from sbillard/master

fix save errors in custom fields