Fix plot mask