Fix unique id converstion. fixes #51