Fix mask of modalBox