fix bug of LCA