Fix digest blow up by using safeApply in app