fix mask cleanup when swithing mask, ... just clearing the tail is not enough in multimask