Fixing mongodb index definitions