Fix sprites and masked mid textures overlapping