Update fields.py

Fixed #318.