Fix make csv import algorithm more durable