Fix creation of different field types.