Fix labels being in the wrong index