Fixes a hashcode/equals issue