Fix Bugs on AlgebraProcessor

Fix Bugs on AlgebraProcessor