Algo 3 bug fixes required