Fix corrupted sql file