Bug fix for determining if 2 RECT are equal

Here is the PR for the bug.