Enforce automatic fields

Enforce automatic fields to fix issue #282.