if (opts.lastExpandIndex != undefined){
if (opts.lastExpandIndex != undefined && index != opts.lastExpandIndex){