Running web job from this script produces weird result