fixed nextId