Bug 1059280 - Loop around when cycling between jobs with 'n' and 'p'