improper nesting in index fixed