fix NaN in field validation (fixes #112)