Fixed bug with angular digest