fix lca optional stuff from boolean