entity counter fixed
hash code fixed. and other.