Fix error in fields module. Fix #220.