Revert imask patch