Swap the masks for case 1 and case 8