Fixed another tuple index out of range

Another tuple index out of range, the same modification that I did in #7