Stop crashing when type of fields is not selected