fixed: ensureIndex on register model