Fixed triangle testing a bit