fixed getVertex: entity was null