Fixing hash code implementations.