Make tag names unique
Fixes #258