fix election type id