Fixed a bug in the wrong order hit-testing.