last statement index was wrong after all