Fixed incorrect algs