fix tiny index error