Fixed duplicated tables.

Handling secondary index with setRoutAttr()