fix for afterWorkFailed