rewirt add index fix, #1