fix hash code implementation for private tags