fixed index issues when added a new PK