fix getting new ID