cleanup mask when switching masks