Fix scope in dosubmit (doSubmits)