Fixed some warning messages when using matrix jobs and index out of
range problems.