fixed bug of require mask