event fix for pinning jobs and calling $digest