Fix update formula