fixed cunit mask leak