BUG: Wrong return from alg 2.