fixed trans index error