Fix getNbVertices() and load() methods.