Adjust mask
Do not process the same file in adjacent events