Fix NPE for masking tool