Fixed problem when importing fewer than 5 fields.