Fixed anonId generation for messages with n tags