fix InvalidOperationException
better comparison of private tags