Fixed typo on conditional for external_ids creation