job: Initialize $mode

Change-Id: I1847f4a8f140bf93cfa9a13ce7d8f001fff25d96