fix for webjob & error generator