Fixed bug causing an error when recreating a field;