fixed computing Lance-Williams update formula