fixed lca null pointer bug