Fixing some equality bugs.