fix getVertex