Fix hitTestObject.
Merge pull request #961 from tobeytailor/display

Fixes regression in #944