fix: trait index start from 0