bugfix for unique id