fixed the duplicate index creation call bug