{{CShapefile::FixUpShapes }} calls {{ CShapefile::FixUpShapes2}} with selectedOnly = TRUE as parameter.This is wrong. I changed it to selectedOnly = FALSE and now it is working as expected.