Change alg.sign_w to alg.cube.