Fixed bug in get_primary_data for Elan.