Fixed bug related to curves file with more than 1 curve