fix bug of mask configuration