better fix for digest in setLoading