alg: fix enumeration and typo