fix assembly id generation