Fixed field types bug.