Fix for collision using the inversion of the masks. This fixes the problem by inverting the Y coordinate of the collision test.