fixing angular's digest error.