Fixed errors in the workflow algorithm class.