Fixed incorrect offset into array.