Fixed small issue with pointer hit-testing