IndexOutOfBoundsException fixed in prayer.