Fixed some algs