Update fields.py

Avoid unbound local variable error when specifying a resample option in variations.