fix mask analyzing