mask mode escape sequence fix
mask mode add_mask_len fix following the escape sequence fix